package IO.io_5_8.use_file;

import java.io.File;

/**
 * @author bruin_du
 * @description 文件改名
 * @date 2022/5/8 17:23
 **/
public class Main7 {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\乔治\\Desktop\\博客\\Main6.java");
        File src = new File("hello.java");
        System.out.println(file.renameTo(src));
    }
}
